<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<link rel="stylesheet" type="text/css" href="main.css" />
<title>Catalog</title>
</head>
<body>
	<%@include file="header.jsp"%>

	<article>
		<form name="search" action="search" method="get">
			Search: 
			<select name="type">
				<option value="author">Author</option>
				<option value="title" selected="selected">Title</option>
				<option value="subject">Subject</option>
				<option value="keywords">Keywords</option>
				<option value="category">Category</option>
			</select> 
			<input type="text" name="term" /> 
			<input type="submit" name="submit" />
		</form>
	</article>

    <article>
        <div>Browse categories</div>
        <ul>
            <c:forEach var="category" items="${categories}" varStatus="status">
                <li style="padding-left: ${category.level}em"><a href="search?type=category&term=${category.fullName}" >${category.name}</a></li>
            </c:forEach>
        </ul>
    </article>

	<%@include file="footer.jsp"%>
</body>
</html>